package com.fzkj.shejimoshi.strategy;

import com.fzkj.shejimoshi.strategy.domain.User;
import com.fzkj.shejimoshi.strategy.factory.UserStrategyFactory;

/**
 * @DESCRIPTION: TODO 测试一下策略模式
 * @AUTHOR: AnotherOne
 * @DATE: 2021/7/16 11:43
 */
public class TestMain {

    public static void main(String[] args) {
        String type = "gitee";
        UserStrategy strategy = new UserStrategyFactory().getStrategy(type);
        User user = strategy.getUser("fzkj");
    }

}
